package br.org.acessobrasil.portal.vista;

import java.sql.ResultSet;

import br.com.goals.tableedit.model.FieldConfig;
import br.com.goals.tableedit.model.TableToHtml;
import br.com.goals.tableedit.util.CustomHtmlRender;

public class Nivel implements CustomHtmlRender {

	
	public String getHtml(TableToHtml tabela, FieldConfig fieldConfig, ResultSet rs) {
		String retorno="";
		try {
			retorno=" <a href=\"listarItemMenu.action?esquerda="+rs.getInt("nu_item_menu")+"&amp;nu_menu="+rs.getInt("nu_menu")+"\"><img src=\"images/back-alt.gif\" alt=\"Esquerda\" /></a>";
			retorno+=" <a href=\"listarItemMenu.action?direita="+rs.getInt("nu_item_menu")+"&amp;nu_menu="+rs.getInt("nu_menu")+"\"><img src=\"images/forward-alt.gif\" alt=\"Direita\" /></a>";
		} catch (Exception e) {
			e.printStackTrace();
		} 
		return retorno;
	}
}
